<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page session="true" import="java.util.ResourceBundle,java.util.Locale" %>
<%@ page language="java" import="java.util.*" %>
	<%
		Locale local = (Locale) session.getAttribute("local");
		if (local == null){
			local = new Locale("pt","BR");
		}
		ResourceBundle bundle = ResourceBundle.getBundle("rotulos",local);
	%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><%= bundle.getString("title") %></title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrap">
<div align="right">
		<a href="/Livraria/livraria?locale=pt_BR"><input type="image" src="images/flag_pt-BR.png"/></a>
		<a href="/Livraria/livraria?locale=en_US"><input type="image" src="images/flag_en-US.png"/></a>
</div>
	<br/><br/>
	<h2 style="color:white"> <%= bundle.getString("livraria") %> </h2>
<div id="logo">
	<img src="images/machado.gif" width="300px" height="395px" style="float:left; margin:5px" />
</div>
<div id="login">
<h2 style="color:white; "> <%= bundle.getString("acesse") %>  </h2>
<div id="mensagem">
<% ArrayList<String> mensagens = (ArrayList<String>) session.getAttribute("erro");
			if (mensagens != null){
				for (String mensagem : mensagens){%>
		     	   	<%=mensagem.toString()%>
		     	   	<br/>
			        <%}
			    mensagens.clear();
			    session.setAttribute("erro", mensagens); 
		        
	        }%>
</div>
<form name="form1" method="post" action="/Livraria/livraria">
  <h1><%= bundle.getString("nome") %>:
    <input name="nome" type="text" size="30">
  </h1>
  <h1><%= bundle.getString("senha") %>:
    <input name="senha" type="text" size="30">
  </h1>
    <input type="submit" value="<%= bundle.getString("acessar") %>"  />
    <input size="3" type="hidden" name="corrente" value="0">
</form>
</div>
</div>

</body>
</html>

